package test05;
public class Four {
    public static void main(String[] args){
        int score=(int)(1+Math.random()*(5-1+1));
        String str="不及格";
        if(score == 2){
            str="及格";
        }
        else if (score==3){
            str="中等";
        }
        else  if (score==4){
            str="良好";
        }
        else if (score==5){
            str="优秀";
        }
        System.out.println("if else得出的结果是成绩为："+str);

    }




}
